"""Common Pydantic utilities."""

from __future__ import annotations

from datetime import datetime

from pydantic import BaseModel


class ORMBase(BaseModel):
    model_config = {
        "from_attributes": True,
        "populate_by_name": True,
    }


class TimestampModel(BaseModel):
    created_at: datetime
    updated_at: datetime
